import { configureStore } from '@reduxjs/toolkit'
import authSlice from './login/authSlice.ts'
import userSlice from './user/userSlice.ts'
import contractSlice from './finance/contractSlice.ts'

const store = configureStore({
  reducer: {
    authSlice,
    userSlice,
    contractSlice,
  },
  middleware: (getDefaultMiddleware) =>
    getDefaultMiddleware({
      // 关闭redux序列化检测
      serializableCheck: false,
    }),
})

export default store
